import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import Detail from '@/views/Detail'
import Search from '@/components/Search'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/detail/:id', component: Detail
    },
    {
      path: '/home', component: Home,
    },
    {
      path: '*', component: Home
    }
  ]
})
